package com.woniuxy.products.controller;

import com.woniuxy.commons.entity.Repayment;
import com.woniuxy.products.service.RepaymentService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author author
 * @create 2021-11-16 16:51
 */
@RestController
@RequestMapping("/products")
public class RepaymentController {

    @Resource
    private RepaymentService repaymentService;

    @GetMapping("/allRepayment")
    List<Repayment> selectAll(){
        return repaymentService.selectAllService();
    }
}
